Skip to content

Conversation

@mkovalua
Copy link
Contributor

@mkovalua mkovalua commented Oct 27, 2025

Purpose

Return proper columns for registation/preprint/project csv tsv for institutions tab

Summary of Changes

specify needed columns to extract for registation/preprint/project csv tsv downloading for /institutions/cos/dashboard/

Screenshot(s)

image image image

Side Effects

QA Notes

…v tsv downloading for /institutions/cos/dashboard/
… don't contain the user guid (labeled OSF Link in the table))
@mkovalua mkovalua marked this pull request as ready for review October 27, 2025 12:32
'usage.viewCount',
'usage.downloadCount',
];
const resourceType = 'Preprint';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use CurrentResourceType.

Comment on lines 108 to 118
const fields = [
'title',
'dateCreated',
'dateModified',
'sameAs',
'rights.name',
'creator.@id',
'creator.name',
'usage.viewCount',
'usage.downloadCount',
];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can move it to the download-url.helper.ts file, and use the appropriate fields there based on the type. It would also be better to move the related constants to a separate constants file. Update it for all files.

@mkovalua mkovalua requested a review from nsemets October 27, 2025 16:16
@nsemets
Copy link
Collaborator

nsemets commented Oct 28, 2025

@mkovalua Fix lint issues.

@nsemets nsemets merged commit 4bf70b8 into CenterForOpenScience:feature/pbs-25.02 Oct 29, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants